﻿using System.Collections.Generic;
using BO;
using Model;

namespace Controller
{
    /// <summary>
    /// Summary description for QuoteController
    /// </summary>
    public class QuoteController
    {
        private QuoteBO quoteBo;

        public QuoteController()
        {
            quoteBo = new QuoteBO();
        }

        public List<Quote> GetListQuote()
        {
            return quoteBo.GetListQuote();
        }

        public int AddQuote(Quote quote)
        {
            return quoteBo.AddQuote(quote);
        }

        public int EditQuote(Quote quote)
        {
            return quoteBo.EditQuote(quote);
        }

        public int DeleteQuote(Quote quote)
        {
            return quoteBo.DeleteQuote(quote);
        }

        public List<Quote> GetRandomQuote()
        {
            return quoteBo.GetRandomQuote();
        }
    }
}